﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NET.List
{
    public class People
    {
        public string Name { get; set; }
        public int Age { get; set; }

        public People(string name, int age)
        {
            this.Name = name;
            this.Age = age;
        }

        public static List<People> GetList()
        {
            var list = new List<People>();
            list.Add(new People("张三", 18));
            list.Add(new People("李四", 20));
            list.Add(new People("王五", 25));
            list.Add(new People("张李王", 30));
            return list;
        }
    }
}
